/*
 * Copyright user2010
 * All rights reserved
 */

package org.myorg.applitest.gui.swing.components.panel;

import javax.swing.JPanel;
import javax.swing.LayoutStyle;

/**
 *
 * @author user
 */
public class PnlIdtAnmName extends JPanel{
    public PnlIdtAnmName() {
        initComponents();
        this.setSize(340, 168);
    }

        private void initComponents() {

        int lengthTxf = 120;

        this.ltfNom = new lbzVrtTextField("Nom",lengthTxf);
        this.ltfEspece = new lbzVrtTextField("Espèce",lengthTxf);
        this.ltfRace = new lbzVrtTextField("Race",lengthTxf);
        this.ltfProprietaire = new LbzCmbProprietaire("Proprietaire",lengthTxf);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
            .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(ltfNom)
                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(ltfEspece)
                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(ltfRace)
                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(ltfProprietaire)
                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                )
            .addGroup(layout.createSequentialGroup()
                
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                


                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(ltfNom)
                .addComponent(ltfEspece)
                .addComponent(ltfRace)
                .addComponent(ltfProprietaire)
                )
                )
        );
    }

    public String getNameNom(){
       return ltfNom.getText();
    }
    public String getEspece(){
       return ltfEspece.getText();
    }
    public String getRace(){
       return ltfRace.getText();
    }
    public String getIdProprietaire(){
       return ltfProprietaire.getText();
    }

    private lbzVrtTextField ltfNom;
    private lbzVrtTextField ltfEspece;
    private lbzVrtTextField ltfRace;
    private LbzCmbProprietaire ltfProprietaire;


}
